#include <SDL.h>
#include <SDL_image.h>

extern SDL_Surface* screen;
extern Uint8* keystate;

void InitializeSDL()
{
    SDL_Init(SDL_INIT_EVERYTHING);
    IMG_Init(IMG_INIT_PNG);

    screen = SDL_SetVideoMode(640,480,32,SDL_HWSURFACE|SDL_DOUBLEBUF);
    SDL_WM_SetCaption("Fearless Journalist", NULL);

    keystate = SDL_GetKeyState(NULL);
}
